<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>
			CreateNewCommonNews
		</title>
		<meta http-equiv="keywords" content="theme">
		<meta http-equiv="description" content="theme">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="../ckeditor/ckeditor.js">
		</script>
		<script type="text/javascript" src="../js/jquery-1.6.1.js">
		</script>
		<script type="text/javascript" src="../js/uploadfile.js">
		</script>
		<script type="text/javascript" src="../js/formattext.js">
		</script>

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	</head>
	<body>
		<h1>
			Create new common news
		</h1>
		<form method="post" action="createNewCommonNews.action" onsubmit="return formatText(title,ckeditor)">
			news title:
			<input type="text" name=commonNews.title id="title"">
			<br>
			news context:
			<br>
			<textarea id="ckeditor" class="ckeditor" type="text" name=commonNews.context
			cols="50 " rows="20">
			</textarea>
			<p>
				Please choose a group!
			</p>
			<div class=box>
				<select name=commonNews.groupname>
					<#list groupList as group>
						<option value="${group.groupName}">
							${group.groupName}
						</option>
					</#list>
				</select>
			</div>
			<input type="submit" value="submit" id="submitButton" 
			/>
		</form>
		<div id="attachment_area">
		</div>
		<form action="uploadFileAction.action" method="post" enctype="multipart/form-data"
		target="uploadFrame" id="uploadFileForm">
			<input type="file" name="upload" id="filePath">
			<br>
			<input value="upload" type="submit" onclick="uploadFile()" id="uploadButton">
		</form>
		<iframe name="uploadFrame" style="visibility: hidden">
		</iframe>
	</body>

</html>